<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>创建多个节点2</title>
</head>
<body onload="dc()">
<script type="text/javascript">
	function dc(){
		var aText=["第一个节点","第二个节点","第三个节点","第四个节点","第五个节点","第六个节点"];
		var cdf=document.createDocumentFragment();
		for(var i=0;i<aText.length;i++){
			var ce=document.createElement("b");
			var cb=document.createElement("br");
			var cText=document.createTextNode(aText[i]);
			ce.appendChild(cText);
			cdf.appendChild(ce);
			cdf.appendChild(cb);
		}
		document.body.appendChild(cdf);
	}
</script>
</body>
</html>
